﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

namespace YiWangTongBan
{
    /*
     * 定义一网通办--报修实体类
     * 创建人：方志恩
     * 创建日期：2019/11/28
     */
    public class RepairEntity
    {
        /// <summary>
        /// 申请单唯一ID
        /// </summary>
        public string incident_id { get; set; }
        /// <summary>
        ///统一审批编码
        /// </summary>
        public string apply_no { get; set; }
        /// <summary>
        ///客户类型
        /// </summary>
        public string custom_type { get; set; }
        /// <summary>
        ///用水地址
        /// </summary>
        public string shw_address { get; set; }
        /// <summary>
        ///申请人
        /// </summary>
        public string applicant { get; set; }
        /// <summary>
        ///申请时间
        /// </summary>
        public string appdate { get; set; }
        /// <summary>
        ///申请单类型 
        /// </summary>
        public string incident_type { get; set; }
        /// <summary>
        ///是否转单
        /// </summary>
        public string is_transfer_order { get; set; }
        /// <summary>
        ///申请转单的水务公司
        /// </summary>
        public string shw_company_source { get; set; }
        /// <summary>
        ///证件类型
        /// </summary>
        public string cert_type { get; set; }
        /// <summary>
        ///证件号码
        /// </summary>
        public string cert_number { get; set; }
        /// <summary>
        ///电子邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        ///企业名称 
        /// </summary>
        public string company_name { get; set; }
        /// <summary>
        ///企业类型
        /// </summary>
        public string company_type { get; set; }
        /// <summary>
        ///统一社会信用代码 
        /// </summary>
        public string social_credit_code { get; set; }
        /// <summary>
        /// 案例类型
        /// </summary>
        public string case_type_cd { get; set; }
        /// <summary>
        ///销根号 
        /// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///发生地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        ///联系电话 
        /// </summary>
        public string contact_value { get; set; }
        /// <summary>
        ///反映来源 
        /// </summary>
        public string fyly { get; set; }
        /// <summary>
        ///反映形式 
        /// </summary>
        public string fyxs { get; set; }
        /// <summary>
        ///反映区名 
        /// </summary>
        public string fyqm { get; set; }
        /// <summary>
        ///反映类别 
        /// </summary>
        public string fylb { get; set; }
        /// <summary>
        ///反映内容
        /// </summary>
        public string fynr { get; set; }
        /// <summary>
        ///报修时间
        /// </summary>
        public string bx_dttm { get; set; }
        /// <summary>
        ///处理级别
        /// </summary>
        public string cljb { get; set; }
        /// <summary>
        ///承诺时间 
        /// </summary>
        public string cn_dttm { get; set; }
        /// <summary>
        ///报修位置 
        /// </summary>
        public string bx_loc_cd { get; set; }
        /// <summary>
        ///备注信息
        /// </summary>
        public string repair_comment { get; set; }

        /// <summary>
        /// 证件列表
        /// </summary>
        public List<CertList> CertList { get; set; }
        /// <summary>
        /// 提交渠道
        /// </summary>
        public string source { get; set; }


    }
    public class CertList
    {
        /// <summary>
        ///	证件来源	
        /// </summary>	
        public string cert_source { get; set; }
        /// <summary>
        ///	证件类型	
        /// </summary>	
        public string cert_type { get; set; }
        /// <summary>
        ///	证件号码	
        /// </summary>	
        public string cert_number { get; set; }
        /// <summary>
        ///	证照UUID	
        /// </summary>	
        public string file_uuid { get; set; }
        
        /// <summary>
        ///	文件名	
        /// </summary>	
        public string filename { get; set; }
        /// <summary>
        ///	Web URI	
        /// </summary>	
        public string web_uri { get; set; }

        #region 多人口接口字段
        
        /// <summary>
        /// 人员类型
        /// </summary>
        public string app_type { get; set; }
        /// <summary>
        /// 人员名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 材料类型 01：身份证明；02：居住证明；
        /// </summary>
        public string bus_type { get; set; }

        /// <summary>
        /// 证件生效日期 YYYY-MM-DD
        /// </summary>
        public string cert_effect_date { get; set; }

        /// <summary>
        /// 证件失效日期 YYYY-MM-DD
        /// </summary>
        public string cert_expire_date { get; set; }

        /// <summary>
        /// 证件地址
        /// </summary>
        public string cert_address { get; set; }

        /// <summary>
        /// 居住地址校验结果
        /// </summary>
        public string address_check { get; set; }
        #endregion
    
    }
    public class IncidentStatusReturnEntity
    {
        public string isSuccess { get; set; }
        public string code { get; set; }
        public string errCode { get; set; }
        public string message { get; set; }
        public string incidentId { get; set; }
    }
    /// <summary>
    /// 水务之声文件传输
    /// </summary>
    public class repairFile
    {
        public string third_id { get; set; }
        /// <summary>
        ///	证件来源	
        /// </summary>	
        public string cert_source { get; set; }
        /// <summary>
        ///	证件类型	
        /// </summary>	
        public string cert_type { get; set; }
        /// <summary>
        ///	证件号码	
        /// </summary>	
        public string cert_number { get; set; }
        /// <summary>
        ///	证照UUID	
        /// </summary>	
        public string file_uuid { get; set; }
        /// <summary>
        ///	文件名	
        /// </summary>	
        public string filename { get; set; }
        /// <summary>
        ///	File)
        /// </summary>	
        public Stream File { get; set; }
    }
}